package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduSubject;
import com.atguigu.eduservice.entity.subject.OneSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 课程科目 服务类
 * @author atguigu
 * @since 2021-12-10
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * 添加课程分类
     * @param file 上传的文件
     */
    void saveSubject(MultipartFile file, EduSubjectService eduSubjectService);

    /**
     * 课程分类列表(树形)
     * @return
     */
    List<OneSubject> getAllOneTwoSubject();
}
